/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

import java.beans.*;
import java.io.Serializable;

/**
 *
 * @author CANHNGUYEN
 */
public class ListBeer implements Serializable {
    
    public static final String PROP_SAMPLE_PROPERTY = "sampleProperty";
    private String sampleProperty;
    private PropertyChangeSupport propertySupport;
    private String beerName ="Beer " ;
    
    public ListBeer() {
//        propertySupport = new PropertyChangeSupport(this);
        
    }

    public String getBeerName() {
        return beerName ="Beer ngon tuyet voi";
    }

    public void setBeerName(String beerName) {
        this.beerName = beerName;
    }
    
   
    public String getSampleProperty() {
        return sampleProperty;
    }
    
    public void setSampleProperty(String value) {
        String oldValue = sampleProperty;
        sampleProperty = value;
        propertySupport.firePropertyChange(PROP_SAMPLE_PROPERTY, oldValue, sampleProperty);
    }
    
    public void addPropertyChangeListener(PropertyChangeListener listener) {
//        propertySupport.addPropertyChangeListener(listener);
    }
    
    public void removePropertyChangeListener(PropertyChangeListener listener) {
//        propertySupport.removePropertyChangeListener(listener);
    }
}
